#!/usr/bin/env python3.3

#
#  Filename: e28.py
#  Author  : lukas singer
#
#  Comment : Created by createSolution.sh
#

#import euler
#from euler import *

def pe28():
  x=y=1
  s=2
  while s<1001:
    for i in range(4):
      y+=s
      x+=y
    s+=2
  print(x)

if __name__=="__main__":
  pe28()

